﻿<%@ Page Title="" Language="C#" MasterPageFile="~/cms/cms.master" AutoEventWireup="true" CodeFile="Statistics.aspx.cs" Inherits="cms_ManageBill" %>
<%--<script language="C#" runat="server">
    void updateHD(Object src, GridViewCommandEventArgs e)
    {
        int index = Convert.ToInt32(e.CommandArgument);

        // get the GridViewRow where the command is raised
        GridViewRow selectedRow = ((GridView)e.CommandSource).Rows[index];

        // for bound fields, values are stored in the Text property of Cells [ fieldIndex ]
        if (e.CommandName == "CapNhat")
        {
            MarketOnlineDTO.HoaDonDTO dto = new MarketOnlineDTO.HoaDonDTO();
            dto.TenKH = selectedRow.Cells[1].Text;
            dto.DienThoai = selectedRow.Cells[2].Text;
            dto.Email = selectedRow.Cells[3].Text;
            //dto.NgayGioDatHang = DateTime.Parse(selectedRow.Cells[4].Text);
            dto.DiaChiNhan = selectedRow.Cells[5].Text;
            //dto.NgayGioGiaoHang = DateTime.Parse(selectedRow.Cells[6].Text);
            //TongTien = double.Parse(selectedRow.Cells[7].Text);
            //dto.MaTinhTrangHD = int.Parse(selectedRow.Cells[8].Text);
            dto.MaTaiKhoan = selectedRow.Cells[9].Text;
            dto.HinhThucThanhToan = selectedRow.Cells[10].Text;

            MarketOnlineBUS.HoaDonBUS bus = new MarketOnlineBUS.HoaDonBUS();
            bus.CapNhatHoaDon(dto);
        }



    }

    void setButtonStyle(Object src, GridViewCommandEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            
            System.Data.IDataRecord rowView = (System.Data.IDataRecord)e.Row.DataItem;
            
            TableCellCollection cells = e.Row.Cells;
        }
    }
</script>--%>

<asp:Content ID="Content2" ContentPlaceHolderID="PageTittle" Runat="Server">
THỐNG KÊ BÁN HÀNG
<hr />
<br /><br />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
    <div style="text-align:center;">
        Chọn ngày thống kê
        <asp:DropDownList ID="cbNgay" runat="server" Width="70px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
        </asp:DropDownList>
        &nbsp&nbsp&nbsp
        <asp:DropDownList ID="cbThang" runat="server" Width="70px"  Font-Bold="True" 
                Font-Size="X-Large" ForeColor="#999999" Height="30px">
        </asp:DropDownList>

        &nbsp&nbsp&nbsp
        <asp:DropDownList ID="cbNam" runat="server" Width="100px"  Font-Bold="True" 
                Font-Size="X-Large" ForeColor="#999999" Height="30px">
        </asp:DropDownList>
        &nbsp&nbsp
        <asp:Button ID="Button1" runat="server" Text="OK" Height="35px" 
            onclick="Button1_Click" Width="70px" />

    </div>
    <br />
    <div style="text-align:center">
        <table width="60%" style="text-align:center">
            <tr>
                <td>
                    <asp:GridView ID="dgvThongKe" runat="server" HorizontalAlign="Center">
                    </asp:GridView>
                </td>
            </tr>
        </table>
        

    </div>
</asp:Content>

